<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";

	request.setAttribute("path", path);
%>

<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'doglist.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type="text/javascript" src="${path}/js/jquery-1.12.3.js"></script>
<script type="text/javascript" src="${path}/js/bootstrap.js"></script>
<link rel="stylesheet" href="${path}/css/bootstrap4.css" />



<body>
<div>
			
		<table class="table table-bordered">
			<thead>
				<tr>
					<th>名称</th>
					<th>城市</th>
					<th>邮编</th>
				</tr>
			</thead>
			
			<tbody>
			<c:forEach var="JOB" items="${obj.data}">
				<tr>
					<td>${JOB.}</td>
					<td>${JOB.}</td>
					<td>${JOB.}</td>
					<td>${JOB.}</td>
					<td>${JOB.}</td>
					<td>${JOB.}</td>
					<td>${JOB.}</td>
				</tr>
				</c:forEach>
			</tbody>
			
		</table>
			
		</div>
		<div style="text-align: center;s">
			<ul class="pagination pagination-lg">
			<li><a href="#">&laquo;起始頁</a></li>
			<c:if test="${obj.hasPreviousPage==true}">
			<li><a href="#">&larr;</a></li>
			</c:if>
			
			<c:forEach  var="index" begin="1"  end="${obj.totalPageCount}">
			<li><a href="#">${index}</a></li>
			</c:forEach>
			<c:if test="${obj.hasNextPage==true}">
			<li><a href="#">&rarr;</a></li>
			</c:if>
			
			<li><a href="#">結束頁&raquo;</a></li>
            </ul>	
			
		</div>
	
		
</body>
</html>
